package com.dd.entity;

import java.io.Serializable;
import java.util.Date;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author LiuXing
 * @since 2018-06-04
 */
@Table("rc_user")
public class RcUser implements Serializable{

	public static final String ID = "id";
	public static final String ACCOUNT = "account";
	
    @Id
    private Long id;
    /**
     * 用户姓名
     */
    @Column
    private String name;
    /**
     * 人员类型 	0-普通 1-管理员  
     */
    @Column
    private Integer role;
    /**
     * 登陆手机	手机号
     */
    @Column
    private String account;
    /**
     * 密码
     */
    @Column
    private String password;
    /**
     * 昵称
     */
    @Column
    private String nick;
    /**
     * 性别	0-未知 1-男 2-女 
     */
    @Column
    private Integer sex;
    /**
     * 身份证
     */
    @Column
    private String idnum;
    /**
     * 出生日期
     */
    @Column
    private Date birthday;
    /**
     * 电话
     */
    @Column
    private String phone;
    /**
     * 微信
     */
    @Column
    private String wechat;
    /**
     * QQ
     */
    @Column
    private String qq;
    /**
     * 电子邮箱
     */
    @Column
    private String email;
    /**
     * 地址
     */
    @Column
    private String address;
    /**
     * 头像
     */
    @Column
    private String headportrait;
    /**
     * 添加时间
     */
    @Column
    private Date time;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getIdnum() {
        return idnum;
    }

    public void setIdnum(String idnum) {
        this.idnum = idnum;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getHeadportrait() {
        return headportrait;
    }

    public void setHeadportrait(String headportrait) {
        this.headportrait = headportrait;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "RcUser{" +
        ", id=" + id +
        ", name=" + name +
        ", role=" + role +
        ", account=" + account +
        ", password=" + password +
        ", nick=" + nick +
        ", sex=" + sex +
        ", idnum=" + idnum +
        ", birthday=" + birthday +
        ", phone=" + phone +
        ", wechat=" + wechat +
        ", qq=" + qq +
        ", email=" + email +
        ", address=" + address +
        ", headportrait=" + headportrait +
        ", time=" + time +
        "}";
    }

}
